home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / patches / ww1138.exe / README.TXT < prev   
Text File  |  1995-01-04  |  6KB  |  152 lines

  1. ======================================================================
  2.   Microsoft(R) Product Support Services Application Note (Text File)
  3.          WW1138: UPDATED CALCULATOR ACCESSORY FOR WINDOWS(TM)
  4. ======================================================================
  5.                                                    Revision Date: 1/95
  6.                                                                 1 Disk
  7.  
  8. The following information applies to Microsoft Windows and Windows for
  9. Workgroups, versions 3.10 and 3.11.
  10.  
  11.  ---------------------------------------------------------------------
  12. | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY     |
  13. | ACCOMPANY THIS DOCUMENT (collectively referred to as an Application |
  14. | Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER      |
  15. | EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED      |
  16. | WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR       |
  17. | PURPOSE. The user assumes the entire risk as to the accuracy and    |
  18. | the use of this Application Note. This Application Note may be      |
  19. | copied and distributed subject to the following conditions:  1) All |
  20. | text must be copied without modification and all pages must be      |
  21. | included;  2) If software is included, all files on the disk(s)     |
  22. | must be copied without modification (the MS-DOS(R)  utility         |
  23. | diskcopy is appropriate for this purpose);  3) All components of    |
  24. | this Application Note must be distributed together;  and  4) This   |
  25. | Application Note may not be distributed for profit.                 |
  26. |                                                                     |
  27. |                                                                     |
  28. | Copyright (C) 1995 Microsoft Corporation.  All Rights Reserved.     |
  29. | Microsoft and MS-DOS are registered trademarks and Windows is a     |
  30. | trademark of Microsoft Corporation.  Intel and Pentium are          |
  31. | registered trademarks of Intel Corporation.                         |
  32.  ---------------------------------------------------------------------
  33.  
  34. Introduction
  35. ------------
  36.  
  37. The WW1138 disk included with this Application Note contains an
  38. updated version of the Calculator accessory that is shipped with
  39. Microsoft Windows 3.1x and Windows for Workgroups 3.1x. Previous
  40. versions of Calculator display simple subtraction errors when you
  41. subtract two numbers that include values to the right of the decimal
  42. point. While Calculator is determining how to display the solution, it
  43. encounters a loss of precision and shows an incorrect answer.
  44.  
  45. This rounding error is not related to the floating-point unit (FPU) in
  46. the Intel(R) Pentium(R) chip. This problem occurs only in Calculator
  47. and does not affect Windows, other components in Windows, or other
  48. Windows-based applications.
  49.  
  50. In addition to correcting the problem described above, the new
  51. rounding algorithm in Calculator causes it to perform more like most
  52. hand-held calculators. For example, if you enter the following
  53. equation in the updated Calculator accessory or in a hand-held
  54. calculator
  55.  
  56.    [(1/3 + 10 - 10) x 3]
  57.  
  58. the result is 0.9999. The result in previous versions of Calculator is
  59. 1.0. The value 0.9999 is generated because significant digits are lost
  60. by adding and subtracting 10. This is a secondary effect of the
  61. changes made in Calculator to correct the precision errors.
  62.  
  63. To install the updated files
  64. ----------------------------
  65.  
  66. 1. Quit Windows, or open an MS-DOS command prompt within Windows.
  67.  
  68. 2. Rename the existing CALC.EXE file in your Windows directory. For
  69.    example, if Windows is installed in a directory on drive C called
  70.    WINDOWS, type the following commands, pressing ENTER after each
  71.    line:
  72.  
  73.       cd\windows
  74.       ren calc.exe calc.old
  75.  
  76.    NOTE: If you received this Application Note electronically, skip
  77.    steps 3 and 4, and continue with step 5.
  78.  
  79. 3. At the MS-DOS command prompt, type the following to create a
  80.    new directory, then press ENTER
  81.  
  82.       md <drive>:\<dirname>
  83.  
  84.    where <drive> is your hard disk and <dirname> is the name of the
  85.    directory you want to create. For example, type:
  86.  
  87.       md c:\tempdir
  88.  
  89. 4. Insert the enclosed WW1138 disk in the appropriate floppy disk
  90.    drive, and copy WW1138.EXE from the WW1138 disk included with this
  91.    Application Note to the newly created directory as follows
  92.  
  93.       copy <drive>:\ww1138.exe <destination>
  94.  
  95.    where <drive> is the floppy disk drive containing the WW1138 disk
  96.    and <destination> is the drive and newly created directory. For
  97.    example, if the directory is called TEMPDIR and is located on drive
  98.    C and the WW1138 disk is in drive A, type the following command,
  99.    then press ENTER:
  100.  
  101.       copy a:\ww1138.exe c:\tempdir
  102.  
  103. 5. Change to the newly created directory (or, if you received this
  104.    Application Note electronically, the directory to which you
  105.    downloaded WW1138) by typing the following, then press ENTER
  106.  
  107.       cd\<tempdir>
  108.  
  109.    where <tempdir> is the directory containing WW1138.EXE.
  110.  
  111. 6. Type the following, then press ENTER:
  112.  
  113.       ww1138
  114.  
  115. 7. Copy CALC.EXE to the Windows directory. For example, if Windows is
  116.    installed in a directory on drive C called WINDOWS, type the
  117.    following command, then press ENTER:
  118.  
  119.       copy calc.exe c:\windows
  120.  
  121. You are now ready to restart Windows (if necessary) and run the
  122. updated Calculator accessory.
  123.  
  124. Steps to Reproduce Problem Using Previous Versions of Calculator
  125. ----------------------------------------------------------------
  126.  
  127. 1. To perform this test, choose two numbers that include values to the
  128.    right of the decimal point (for example, 12.52 and 12.51).
  129.  
  130. 2. Double-click the Calculator icon in the Accessories group.
  131.  
  132. 3. Enter the larger number first (for example, 12.52).
  133.  
  134. 4. Press the MINUS SIGN (-).
  135.  
  136. 5. Enter the smaller number (for example, 12.51).
  137.  
  138. 6. Press the EQUAL SIGN (=).
  139.  
  140. Note that in this example you do not receive .01, the expected result.
  141. Instead, you receive one of the following:
  142.  
  143.    0.00
  144.    0.0099999999
  145.    0.010000001
  146.  
  147. The updated Calculator accessory displays the correct result, which is
  148. .01.
  149.  
  150.                                    
  151.  
  152.